<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ include file="/common/taglibs.jsp" %>
<%@ include file="/common/favicon.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="${cdnctx}/src/login/login.css" rel="stylesheet" type="text/css"/>
    <script src="${cdnctx}/dep/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
    <link href="${cdnctx}/dep/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="${cdnctx}/dep/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).keydown(function (event) {
            if (event.keyCode == 13) {
                check();
            }
        });

        function check() {
            if ($.trim($("#name").val()) == "") {
                $("#name").popover('show');
                return false;
            }
            if ($.trim($("#password").val()) == "") {
                $("#password").popover('show');
                return false;
            }

            $("#mainform").submit();
        }
    </script>
    <title>溢德行登录页面</title>
</head>

<body>
<div class="outer_bg">
    <div class="outer_top">
        <div class="inner_top"><img src="${cdnctx}/src/login/img/logo.png" width="202" height="60"></div>
    </div>
    <div class="outer_mid">
        <div class="inner_min">
            <form id="mainform" class="login_box" action="${cdnctx}/toEvery.shtml" method="post">
                <div class="greet"><img src="${cdnctx}/src/login/img/greet.png" width="260" height="80"/></div>
                <div class="entry">
                    <div class="user"><input type="text" id="name" name="name" placeholder="请输入用户名"/ class="user_input"
                        data-content="登录名不能为空。" data-placement='bottom'>
                    </div>
                    <div class="lock"><input type="password" id="password" name="password" placeholder="请输入密码"/
                        class="user_input" data-content="密码不能为空。" data-placement='bottom'>
                    </div>
                    <div style="color: red;font-size:14px">${errormsg}</div>
                </div>
                <div class="buttons">
                    <input type="button" class="log" onclick="check();" ; value="登录"/>
                    <input type="reset" class="reset" value="重置"/>
                </div>
        </div>
        </form>
    </div>
    <div class="ourer_bottom">
        <div class="inter_bottom">
            <p>上海溢德行工业科技有限公司 | Copyright@2014-
                <script>document.write(new Date().getFullYear())</script>
                溢德行版权所有 | <a style="color: #9f9a96;" href="http://www.miitbeian.gov.cn">沪ICP备14033738-2</a></p>
        </div>
    </div>
</div>
</body>
</html>
